CastDomain

class CastDomain : Domain

A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.

This API is marked as experimental in protocol definition and can change in the future.

Functions

description
Link copied to clipboard
fun description(): String
Returns domain description.
disable
Link copied to clipboard
fun disable(): Single<RequestResponseFrame>
Stops observing for sinks and issues.
enable
Link copied to clipboard
fun enable(input: EnableRequest): Single<RequestResponseFrame>
Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well.
events
Link copied to clipboard
fun events(): Flowable<Event>
Returns flowable capturing all domains events.
fun events(filter: Predicate<Event>): Flowable<Event>
Returns flowable capturing all domains events matching predicate.
fun <T : Event> events(eventClass: Class<T>): Flowable<T>
Returns flowable capturing all domain events of a given type.
fun <T : Event> events(eventClass: Class<T>, filter: Predicate<T>): Flowable<T>
Returns flowable capturing all domain events of a given type matching predicate.
getDependencies
Link copied to clipboard
open fun getDependencies(): List<Domain>
Returns domain dependencies.
issueUpdated
Link copied to clipboard
fun issueUpdated(): Flowable<IssueUpdatedEvent>
This is fired whenever the outstanding issue/error message changes.
name
Link copied to clipboard
fun name(): String
Returns domain name.
setSinkToUse
Link copied to clipboard
fun setSinkToUse(input: SetSinkToUseRequest): Single<RequestResponseFrame>
Sets a sink to be used when the web page requests the browser to choose a sink via Presentation API, Remote Playback API, or Cast SDK.
sinksUpdated
Link copied to clipboard
fun sinksUpdated(): Flowable<SinksUpdatedEvent>
This is fired whenever the list of available sinks changes.
startTabMirroring
Link copied to clipboard
fun startTabMirroring(input: StartTabMirroringRequest): Single<RequestResponseFrame>
Starts mirroring the tab to the sink.
stopCasting
Link copied to clipboard
fun stopCasting(input: StopCastingRequest): Single<RequestResponseFrame>
Stops the active Cast session on the sink.

Sources

jvm source
Link copied to clipboard